package com.erp.shop.service;

import com.erp.shop.domain.bo.ErpSellerStoreCookieBo;
import com.erp.shop.domain.vo.ErpSellerStoreCookieVo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.oldPage.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 店铺cookie信息保存Service接口
 *
 * @author erp
 * @date 2023-12-12
 */
public interface IErpSellerStoreCookieService {

    /**
     * 查询店铺cookie信息保存
     */
    ErpSellerStoreCookieVo queryById(Long id);

    /**
     * 查询店铺cookie信息保存列表
     */
    TableDataInfo<ErpSellerStoreCookieVo> queryPageList(ErpSellerStoreCookieBo bo, PageQuery pageQuery);

    /**
     * 查询店铺cookie信息保存列表
     */
    List<ErpSellerStoreCookieVo> queryList(ErpSellerStoreCookieBo bo);

    /**
     * 新增店铺cookie信息保存
     */
    Boolean insertByBo(ErpSellerStoreCookieBo bo);

    /**
     * 修改店铺cookie信息保存
     */
    Boolean updateByBo(ErpSellerStoreCookieBo bo);

    /**
     * 校验并批量删除店铺cookie信息保存信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    R<ErpSellerStoreCookieVo> getInfoByStoreId(Long storeId);

    String getCookieByStoreId(Long storeId);

    R<Object> setCommission(Long storeId, Long aeProductId, Integer afflicateDiscount);
}
